<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<form id="gatewayForm">
  <input type="hidden" name="id" th:value="${gateway?.id}">
  <div class="form-group row">
    <label for="ipAddress" class="col-sm-2 col-form-label">网关ip</label>
    <div class="col-sm-10">
      <input type="text" th:value="${gateway?.ipAddress}"
             name="ipAddress" class="form-control" id="ipAddress"
             placeholder="填写ip地址" required>
      <div class="invalid-feedback">请填写ip地址</div>
    </div>
  </div>
  <div class="form-group row">
    <label for="ipAddress" class="col-sm-2 col-form-label">网关ip</label>
    <div class="col-sm-10">
      <input type="text" th:value="${gateway?.ipAddress}"
             name="ipAddress" class="form-control" id="ipAddress"
             placeholder="填写ip地址" required>
      <div class="invalid-feedback">请填写串口</div>
    </div>
  </div>
  <div class="form-group row">
    <label for="indicators" class="col-sm-2 col-form-label">包含指标</label>
    <div class="col-sm-10">
      <textarea name="indicators" class="form-control" id="indicators"
                placeholder="填写网关对应的指标" th:text="${gateway?.indicators}"></textarea>
      <div class="invalid-feedback">请填写网关对应的指标</div>
    </div>
  </div>
</form>